<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "admin_merchants".
 *
 * @property int $merchants_id
 * @property string|null $merchants_name 商家名称
 * @property string|null $merchants_address 商家地址
 * @property string|null $merchants_tel 商家电话
 */
class AdminMerchants extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'admin_merchants';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [

            [['merchants_name', 'merchants_address'], 'string', 'max' => 255],
            [['merchants_tel'], 'string', 'max' => 50],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'merchants_id' => '商家编号',
            'merchants_name' => '商家名称',
            'merchants_address' => '商家地址',
            'merchants_tel' => '商家电话',
        ];
    }
}
